package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 客户退款订单表
 */
@Data
@TableName("t_user_refund")
public class UserOrderRefundEntity implements Serializable {


    @TableId(value = "pk_refundId", type = IdType.AUTO)
    private long refundId;

    @TableField("fk_orderRef")
    private String orderRef;//订单唯一编号

    @TableField("r_refundRef")
    private long refundRef;//退货订单唯一编号

    @TableField("r_totalPrice")
    private double totalPrice;//付款总额

    @TableField("r_date")
    private LocalDateTime dateTime = LocalDateTime.now();//订单退款时间

    @TableField(exist = false)
    private String reason;//原因

    @TableField("r_verifyStatus")
    private int verifyStatus = 0;//审核状态0--待审核  1---审核通过 2 ----审核不通过

    @TableField(exist = false)
    private List<UserOrderInfoProductEntity> userOrderInfoProductEntityList;//退款订单的所有退款商品

    @TableField(exist = false)
    private UserOrderEntity userOrderEntity;//退款订单对应的订单

    @TableField(exist = false)
    private List<UserOrderRefundRecordEntity> userOrderRefundRecordEntityList;//退款订单对应的退款审核记录


}
